﻿@model enqueteJwVd.Survey
@{
    ViewBag.Title = "ActivateSurvey";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    ActivateSurvey @Html.DisplayFor(model => model.Title)
</h2>@*Hier moet misschien de desbetreffende surveyId in komen te staan*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Survey</legend>
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Title)
        @Html.HiddenFor(model => model.Description)
        @Html.HiddenFor(model => model.EndText)
       @*Html.HiddenFor(model => model.State == true)
        @Html.HiddenFor(model => model.ActivationDate == DateTime.Now)

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>
        *@
        <div class="editor-label">
            @Html.LabelFor(model => model.EndDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate)
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Anonymous)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Anonymous)
            @Html.ValidationMessageFor(model => model.Anonymous)
        </div>
        <p>
            <input type="submit" value="Activate" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>